package net.begincode.blog.service.impl;

import net.begincode.blog.dao.HomeTypeBlogMapper;
import net.begincode.blog.entity.HomeType;
import net.begincode.blog.entity.HomeTypeBlog;
import net.begincode.blog.service.HomeTypeBlogService;
import net.begincode.blog.service.HomeTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class HomeTypeBlogServiceImpl implements HomeTypeBlogService{
    @Resource
    private HomeTypeBlogMapper homeTypeBlogMapper;
    @Override
    public List<HomeTypeBlog> selectByHomeType(Long homeTypeId, Integer limit) {
        return homeTypeBlogMapper.selectByHomeType(homeTypeId,limit);
    }
}
